<template>
    <el-button type="primary" @click="drawer = true">
        查看笔记
    </el-button>
    <el-drawer v-model="drawer" :title="title" direction="rtl">
        <template #default>
            <!-- <markdown /> -->

            <slot />
        </template>
    </el-drawer>
</template>

<script setup>
import { ref } from 'vue'
const props = defineProps({
    title: {
        type: String,
        default: ''
    }
})
// import markdown from './text.md'

// const markdown1 = ref(markdown)
const drawer = ref(false)
</script>